﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Analyzor.entity
{

    [SugarTable("min5data001")]
    public class Min5Data
    {
        public static string TablePrfiex = "min5data";

        public long Id { get; set; }

        public string MinbasicdataID { get; set; }
        [SugarColumn(ColumnName = "date")]
        public string Date { get; set; }

        [SugarColumn(ColumnName = "datetime")]
        public long DateTime { get; set; }

        public string StockId { get; set; }

        public decimal OpenPrice { get; set; }
        public decimal HighPrice { get; set; }

        public decimal LowPrice { get; set; }

        public decimal ClosePrice { get; set; }

        public decimal Volume { get; set; }

        public decimal Amount { get; set; }

        public static string BuildTableName(int i)
        {
            return $"{TablePrfiex}{i.ToString().PadLeft(3, '0')}";
        }
    }
}
